<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                template="/templates/mainLayout.xhtml">

    <ui:define name="title">Tin tức/sự kiện</ui:define>
    <ui:define name="content">
        <style type="text/css">
            .colStyle1 {
                vertical-align: top;
                width: 65%;
            }
            .colStyle2 {
                vertical-align: top;
            }
        </style>
        <h:form id ="contentForm">
            <h:panelGrid columns="2" style="width: 100%;" cellpadding="5" columnClasses="colStyle1, colStyle2">
                <p:panel header="Tin tức/sự kiện">
                    <h:panelGrid columns="4" style="width: 100%" cellpadding="2">
                        <ui:repeat value="#{newsBean.displayNewsList}" var="news">
                            <h:outputLink style="font-size: 13px; font-weight: bold; color: #0099CC;" 
                                          value="newsdetail.jsf?id=#{news.id}">#{news.name}</h:outputLink>
                        </ui:repeat>
                    </h:panelGrid>
                </p:panel>
                
                <h:panelGroup>
                    <p:panel header="Tin tức" style="100%;">
                        
                    </p:panel>

                    <p:panel header="Cao thủ" style="margin-top: 5px;"></p:panel>
                </h:panelGroup>
            </h:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>